package ch.netcetera.planningpoker.shared;

import java.util.List;

import ch.netcetera.planningpoker.client.model.ParticipantProxy;
import ch.netcetera.planningpoker.server.dao.ParticipantDao;
import ch.netcetera.planningpoker.server.locator.DaoServiceLocator;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;

@Service(value = ParticipantDao.class, locator = DaoServiceLocator.class)
public interface ParticipantRequest extends RequestContext {
    
    Request<ParticipantProxy> createDistinctParticipant(String name, Long gameId);
    
    Request<ParticipantProxy> get(Long id);
    
    Request<List<ParticipantProxy>> getParticipantsForGame(Long gameId);
     
    Request<Void> removeParticipantFromGame(Long participantId);

}
